"""
类练习
"""
class Student:
    def __init__(self, name, age, addr):
        self.name = name
        self.age = age
        self.addr = addr

    def show(self):
        print(f"学生信息：姓名：{self.name},年龄：{self.age},地址：{self.addr}")
student_list = []
for i in range(3):
    name = input("请输入学生姓名：")
    age = int(input("请输入学生年龄："))
    addr = input("请输入学生地址：")
    stu = Student(name,age,addr)
    student_list.append(stu)
print("学生信息如下：")
for stu in student_list:
    stu.show()